package com.ruanda.vo;

import com.ruanda.domain.MemberAddr;
import com.ruanda.model.ShopOrder;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

/**
 * 订单确认页面对象
 */

@Schema(description = "订单确认页面对象")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class OrderVo {

    @Schema(description = "会员收获地址对象")
    private MemberAddr memberAddr;
    @Schema(description = "订单店铺对象集合")
    private List<ShopOrder> shopCartOrders;
    @Schema(description = "商品总数量")
    private Integer totalCount;
    @Schema(description = "合计|订单总额")
    private BigDecimal total = BigDecimal.ZERO;
    @Schema(description = "备注")
    private String remark;
    @Schema(description = "运费")
    private BigDecimal transfee = BigDecimal.ZERO;
    @Schema(description = "优惠金额")
    private BigDecimal shopReduce = BigDecimal.ZERO;
    @Schema(description = "小计")
    private BigDecimal actualTotal = BigDecimal.ZERO;
    @Schema(description = "订单类型，0：普通订单，1：购物车订单")
    private Integer orderType = 0;

}